<block name="head">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__CSS__/swiper.min.css">
    <link rel="stylesheet" href="__CSS__/style.css?{:rand()}">
    <script src="__STATIC__/jquery-2.1.4.min.js"></script>
    <script src="__JS__/common.js"></script>
    <title>{$meta_title}</title>
    <style>
        a {
            color: #607fa6;
            text-decoration: none;
        }
        .portrait{
            background-position-x: 50%;
            background-position-y: center;
        }
    </style>
    <script>
        $(function(){
            // 微信图片查看
            var imgsObj = $('img');
            var imgs = [];
            for(var i = 0; i < imgsObj.size(); i++){
                 if ( !$(imgsObj.eq(i)).hasClass('noShow') ) {
                     console.log('没有noShow');
                     imgs.push(imgsObj.eq(i).attr('src'));
                 } else {
                     console.log('有noShow');
                 }
            }

            $('body').on('click','img',function(){
                // 如果没有noShow样式，则使用微信查看
                if ( !$(this).hasClass('noShow') ){
                    WeixinJSBridge.invoke('imagePreview', {
                        'current': $(this).attr('src'),
                        'urls': imgs
                    });
                }
            });
        });
    </script>
</block>